package com.wlz.principle.lsp.LsBird;

/**
 * @author： wlz
 * @Date 2020/7/31 10:58
 * @description： TODO 鸟类
 * @version: 1.0
 */
public class Bird extends Animal{

    double flySpeed;

    public void setSpeed(double speed) {
        flySpeed=speed;
    }


    public double getFlyTime(double distance)
    {
        return(distance/flySpeed);
    }
}
